
<template>
	{{state.text}}
	<button @click="open" style="margin-top: 20px;">与主进程通信</button>
</template>
<script setup lang="ts">
import { reactive } from 'vue';

// import Versions from './components/Versions.vue'

const state=reactive({
	text:""
})
const open=async ()=>{
	state.text=await window.api.TestController.test({name:"小包子"})
}
</script>
<style lang="less">
@import './assets/css/styles.less';
</style>
